package com.study.simplefactory.config;

import com.study.simplefactory.factory.MyBeanFactory;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @ClassName: MyBeanFactoryConfig
 * @Description:
 * @Details:
 * @Author: 郑港旭
 * @Create: 2021-11-12 10:07
 **/
@Configuration
public class MyBeanFactoryConfig {
    @Bean(name = "myBeanFactory")
    public MyBeanFactory myBeanFactory(){
        return new MyBeanFactory();
    }
}
